package com.itheima.homework.homework1;

import java.util.ArrayList;

/**
 * 经理
 */
public class Manager extends Employee {

    //员工
    public String clerk;

    @Override
    public void showMsg(ArrayList<Employee> employees) {

        for (int i = 0; i < employees.size(); i++) {
            Employee e = employees.get(i);
            if (e.getWorkId().contains("M")) {
                System.out.println("销售部的:" +e.getName() + ",员工编号:" + e.getWorkId());
            }
            if(e.getWorkId().contains("C")){
                System.out.println("他的员工为:" + e.getName());
            }
        }
    }


    public String getClerk() {
        return clerk;
    }

    public void setClerk(String clerk) {
        this.clerk = clerk;
    }

    public Manager(String clerk) {
        this.clerk = clerk;
    }

    public Manager() {
    }


}
